<template>
  <view style="padding: 20upx;">
    <view style="display: flex;align-items: center; ">
      <view>
        <u-avatar :src="instroduce.avatar" size="65"></u-avatar>
      </view>
      <view style="padding-left: 20upx;">
        <view style="font-size: 35upx;font-weight: bold;">{{'技师：'+ instroduce.nickname}}</view>
        <view style="padding-top: 10upx;color: #898989;font-size: 25upx;">{{instroduce.introduce}}</view>
        <view style="display: flex;justify-content: space-between;padding-top: 10upx;">
          <view style="display: flex;">
            <view>
              <u-icon name="account-fill" size="20" color="#1AB0BE" />
            </view>
            <view style="color: #666666;font-size: 30upx;">{{'实名认证'}}</view>
          </view>
          <view style="display: flex;padding-left: 5upx;">
            <view>
              <u-icon name="heart-fill" size="20" color="#1AB0BE" />
            </view>
            <view style="color: #666666;font-size: 30upx">{{'爽约包退'}}</view>
          </view>
          <view style="display: flex;padding-left: 5upx;">
          <view>
            <u-icon name="star-fill" size="20" color="#1AB0BE" />
          </view>
          <view style="color: #666666;font-size: 30upx">{{'资质证书'}}</view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  import {
    getTechnician
  } from '../../api/technician.js'

  export default {
    props: {
      memberId: {
        type: String,
        default: null
      },
    },
    data() {
      return {
        id: undefined,
        instroduce: {}
      }
    },
    methods: {
      init(memberId) {
        this.id = memberId
        this.getTechnicianHandle()
      },
      getTechnicianHandle() {
        const that = this
        getTechnician(this.id).then(res => {
          that.instroduce = res.data
        })
      }
    }
  }
</script>

<style>

</style>
